class Income_moneyFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Income_moneyTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Income_moneysApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Income_moneyFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Income_moneysAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "income_moneys": "search"

                
myapp.addInitializer -> 
    myapp.Income_moneys_app = new Income_moneysApp()
    myapp.Income_moneys_app.router = new Income_moneysAppRouter controller: myapp.Income_moneys_app

myapp.vent.trigger("routing:started")
